//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.orphan.supplier.controller;

import com.orphan.supplier.po.TenderCall;
import com.orphan.supplier.service.ITenderCallService;
import com.orphan.supplier.vo.TenderCallVO;
import java.util.List;
import javax.annotation.Resource;

import io.swagger.models.auth.In;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping({"tenderCall"})
public class TenderCallController {
    @Resource
    private ITenderCallService tenderCallService;

    public TenderCallController() {
    }

    @GetMapping({"/list/{username}/{pageNo}/{pageSize}"})
    public List<TenderCallVO> listByUsername(@PathVariable("username") String username,
                                             @PathVariable("pageNo") Integer pageNo,
                                             @PathVariable("pageSize") Integer pageSize) {
        return this.tenderCallService.listByUsername(username,pageNo,pageSize);
    }

    @GetMapping({"/all"})
    public List<TenderCall> ShowAll() {
        return this.tenderCallService.list();
    }
}
